jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Mon, 8 Jun 2026 00:05:35 +0000 (12:05 +1200)
committerVladimir Petko <vladimir.petko@canonical.com>
Mon, 8 Jun 2026 00:05:35 +0000 (12:05 +1200)
commit2412e33f79e52928b8d1d5f3537526efec3a80c1
tree92e8700a2f4b69f4f837a956a48d84b081795606
parentff00821e136ba8e71bd675414f35a912c95a987f
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk